{extend name="public/base" /}
{block name="title"}
<title>{:confv('title')}</title>
<meta name="keywords" content="{:confv('keywords')}">
<meta name="description" content="{:confv('description')}">
{/block}
{block name="head"}
<link href="__ROOT__/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="__ROOT__/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />

<link href="__ROOT__/home/basic/css/demo.css" rel="stylesheet" type="text/css" />

<link href="__ROOT__/home/css/seastyle.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="__ROOT__/home/basic/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="__ROOT__/home/js/script.js"></script>
<style type="text/css">
.am-pagination li{
	margin: 0px auto;
	float: left;
	width: 40px;
	height: 40px;
	border: solid 1px #ccc;
	text-align: center;
	line-height: 40px;
}
</style>
{/block}
{block name="body"}
<div class="clear"></div>
			<!-- <b class="line"></b> -->
            <div class="search">
			<div class="search-list">
			<div class="nav-table">
					   <div class="long-title"><a href="/"><span class="all-goods">全部分类</span></a></div>
					   <div class="nav-cont">
							<ul>
							    {foreach $cates as $vo}
                                    <li class="qc"><a href="{:url('/'.$vo['id'])}">{$vo.typename}</a></li>
							    {/foreach}
							</ul>
						</div>
			</div>
			
				
					<div class="am-g am-g-fixed">
						<div class="am-u-sm-12 am-u-md-12">
	                  	<div class="theme-popover">			
							<ul class="select">
								<p class="title font-normal">
									<span class="total fl">共计：<strong class="num">{$total}</strong>件产品</span>
								</p>
								<div class="clear"></div>
								<li class="select-result">
									<dl>
										<dt>已选</dt>
										<dd class="select-no"></dd>
										<p class="eliminateCriteria">清除</p>
									</dl>
								</li>
								<div class="clear"></div>
								{if condition="$pid eq 0"}
								{/if}
								<li class="select-list">
									<dl id="select1">
										<dt class="am-badge am-round">所有分类</dt>	
									
										 <div class="dd-conent">	
										    {if condition="$pid eq 0"}									
											<dd class="select-all selected"> <a href="{:url('/'.$cateid)}">全部</a></dd>
											{else /}
                                            <dd class="select-all"><a href="{:url('/'.$pid)}">全部</a></dd>
											{/if}
											{foreach $m_cates as $vo}
											     <dd {if condition="$vo['id'] eq $cateid"}class="selected"{/if}><a href="{:url('/'.$vo['id'])}">{$vo.typename}</a></dd>
											{/foreach}
										 </div>
						
									</dl>
								</li>
							</ul>
							<div class="clear"></div>
                        </div>
							<div class="search-content">
								<div class="sort">
								</div>
								<div class="clear"></div>

								<ul class="am-avg-sm-2 am-avg-md-3 am-avg-lg-4 boxes">
								    {foreach $products as $vo}
									<li>
									    <a href="{:url('/detail/'.$vo['id'])}">
										<div class="i-pic limit">
											<img src="{$vo.litpic|default='__ROOT__/home/images/imgsearch1.jpg'}" />											
											<p class="title fl">{$vo.title}</p>
											<p class="price fl">
												<b>¥</b>
												<strong>{$vo.price}</strong>
											</p>
											<p class="number fl">
												销量<span>{$vo.volume}</span>
											</p>
										</div>
										</a>
									</li>
									{/foreach}
								</ul>
							</div>
							<div class="clear"></div>
							<!--分页 -->
							<div class="am-pagination">
								{$page}
							</div>

						</div>
					</div>
                   {block name="foot"}{include file="public/footer" /}{/block}
					

				</div>

			</div>

		<!--引导 -->
		<div class="navCir">
			<li><a href="home2.html"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li><a href="__ROOT__/home/person/index.html"><i class="am-icon-user"></i>我的</a></li>	
		</div>
<div class="theme-popover-mask"></div>
{/block}
